﻿/*
* 创建者：LIYINFAI
* 创建时间：2023/6/21 16:42:59
* 描述：
* --------------------------------------
* 修改说明：
* --------------------------------------
*/
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace CommonLibrary
{
    /// <summary>
    /// 有背景图片的超链接标签控件
    /// </summary>
    public class BackgroundImageLinkLabel : LinkLabel
    {
        /// <summary>
        /// 背景图片
        /// </summary>
        [Browsable(true), EditorBrowsable(EditorBrowsableState.Always),
         DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        public override Image BackgroundImage
        {
            get
            {
                return base.BackgroundImage;
            }
            set
            {
                base.BackgroundImage = value;
            }
        }
        /// <summary>
        /// 背景图片显示方式
        /// </summary>
        [Browsable(true), EditorBrowsable(EditorBrowsableState.Always),
         DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        public override ImageLayout BackgroundImageLayout
        {
            get
            {
                return base.BackgroundImageLayout;
            }
            set
            {
                base.BackgroundImageLayout = value;
            }
        }
    }
}
